[paket]
tanim   = Çoklu platform destekli ses ve video oynatıcı
paketci = Cihan_Alkan 
grup    = medya
url     = https://www.videolan.org/vlc

[gerek]
derleme = a52dec libdvbpsi libxpm libdca libcddb libidn lua libmatroska taglib libmpcdec ffmpeg faad2 libupnp libmad libmpeg2 xcb-util-keysyms libxinerama libsecret qt5-base qt5-svg qt5-x11extras  freetype fribidi harfbuzz fontconfig libxml2 gnutls libproxy wayland-protocols gst-plugins-base live555 libnotify libbluray flac libdc1394 libavc1394 libcaca gtk3 librsvg avahi libmtp libdvdcss samba mesa mpg123 libdvdread libogg libshout libmodplug libvpx libvorbis speex opus libtheora libpng libjpeg-turbo x265 x264 libass pulseaudio alsa-lib jack libsamplerate libsoxr aom dav1d libgme
calisma = a52dec libdvbpsi libxpm libdca libcddb libidn lua libmatroska taglib libdvdnav libtar protobuf libva chromaprint srt zvbi sdl_image libmpcdec ffmpeg faad2 libupnp libmad libmpeg2 xcb-util-keysyms libxinerama libsecret qt5-base qt5-svg qt5-x11extras  freetype fribidi harfbuzz fontconfig libxml2 gnutls libproxy wayland-protocols gst-plugins-base live555 libnotify libbluray aalib twolame flac libdc1394 libavc1394 libcaca gtk3 librsvg avahi libmtp libdvdcss samba mesa mpg123 libdvdread libogg libshout libmodplug libvpx libvorbis speex opus libtheora libpng libjpeg-turbo x265 x264 libass pulseaudio alsa-lib jack libsamplerate libsoxr aom dav1d libgme aom libvncserver

[kaynak]
xz    = https://download.videolan.org/pub/videolan/vlc/${surum}
1 = https://github.com/archlinux/svntogit-packages/raw/packages/vlc/trunk/update-vlc-plugin-cache.hook
2= https://github.com/archlinux/svntogit-packages/raw/packages/vlc/trunk/vlc-3.0.11.1-srt_1.4.2.patch
3 = https://github.com/archlinux/svntogit-packages/raw/packages/vlc/trunk/vlc-live-media-2021.patch
dosya = vlc-lua53_compat.patch
4 = https://raw.githubusercontent.com/SiFuh/yenjie/master/vlc/0004-srt_c.patch
1 = https://notabug.org/oltulu/Aylinux-Resimler/raw/master/vlc2.png


[sha256]
#1     = 

[derle]
betik = rm share/icons/128x128/vlc.png
betik = cp /sources/vlc2.png share/icons/128x128/vlc.png
#betik = export CFLAGS="-march=native"
#betik = patch -Np1 < /sources/update-vlc-plugin-cache.hook
betik = patch -Np1 < /sources/vlc-3.0.11.1-srt_1.4.2.patch
betik = patch -Np1 < /sources/vlc-live-media-2021.patch
betik = patch -Np1 < /sources/0004-srt_c.patch
betik = patch -Np1 < $SRC/vlc-lua53_compat.patch
dosya = derle.sh

[pakur]
betik   = make DESTDIR=$PKG docdir=/usr/share/doc/$isim-$surum-release install
betik   = install -D -m644 "$SRC/vlc-$surum/share/icons/${16}x${16}/vlc.png" "$PKG/usr/share/icons/hicolor/${16}x${16}/apps/vlc.png"
betik   = install -D -m644 "$SRC/vlc-$surum/share/icons/${32}x${32}/vlc.png" "$PKG/usr/share/icons/hicolor/${32}x${32}/apps/vlc.png"
betik   = install -D -m644 "$SRC/vlc-$surum/share/icons/${48}x${48}/vlc.png" "$PKG/usr/share/icons/hicolor/${48}x${48}/apps/vlc.png"
betik   = install -D -m644 "$SRC/vlc-$surum/share/icons/${128}x${128}/vlc.png" "$PKG/usr/share/icons/hicolor/${128}x${128}/apps/vlc.png"
# Obsolets libs
betik   = rm $PKG/usr/lib/libvlc{,core}.la
betik   = rm $PKG/usr/lib/vlc/libcompat.la
betik   = rm $PKG/usr/lib/vlc/libvlc{_pulse,_vdpau,_xcb_events}.la
